package ${basePackageUrl}.dao;
import ${basePackageUrl}.domain.${entityName};
import ${basePackageUrl}.dao.base.BaseDao;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface ${entityName}Dao extends BaseDao<${entityName},Long> {

    @Query(value = "select o from ${entityName} o where o.id =:id")
    List<${entityName}> get${entityName}ById(@Param("id") Long id);

    @Modifying
    @Query(value = "delete from ${entityName} o where o.id = ?1")
    void delete${entityName}ById(Long id);

}